<?php include("include/header.php"); ?>


  <div id="middle_container_for_homepage">
    <div id="homepage_top_image"><img src="images/images/homepage_top_corner_820x5.jpg" width="878" height="5" /></div>
      
    <div id="middle_register">
   	  <div id="buddhist_bride"></div>
          <div id="buddhist_bride1">
              <h2>Why Eparinay.com</h2>
              <p>100% free Buddhist matrimonial</p>
              <p>A user friendly interface</p>

<p>Find out and sort suitable partners.</p>

<p>Free registration and fully secured.</p>

<p>Message and Chat with Bride and Grooms.</p>

<p>Largest database of Buddhist singles coupled</p>

<p>Best-in-class match-making services.</p>

<p>More then 3000 Buddhist Bride and Grooms</p>


          </div>
   	  <div id="ep_form">
    <div id="homesearch">Quick Search</div>
    <div id="homeseach1">
      <form action="buddhist-matrimonial-search-result.php" method="post" name="home_search" class="homesearch" id="home_search">
        <div id="searchtext">
          <div id="search_t1">Looking for:</div>
          <div id="search_t2"><select name="gender" style="width:150px;">
                <option value="Female">Bride</option>
                <option value="Male">Groom</option>
              </select>
          </div></div>
        
        <div id="searchtext"><div id="search_t1">Age:</div>
          <div id="search_t2"><select name="age_min" id="age_min" style="width:64px;">
                <option value="18">18</option>
                <option value="19">19</option>
                <option value="20">20</option>
                <option value="21">21</option>
                <option value="22">22</option>
                <option value="23">23</option>
                <option value="24">24</option>
                <option value="25">25</option>
                <option value="26">26</option>
                <option value="27">27</option>
                <option value="28">28</option>
                <option value="29">29</option>
                <option value="30">30</option>
                <option value="31">31</option>
                <option value="32">32</option>
                <option value="33">33</option>
                <option value="34">34</option>
                <option value="35">35</option>
                <option value="36">36</option>
                <option value="37">37</option>
                <option value="38">38</option>
                <option value="39">39</option>
                <option value="40">40</option>
              </select> 
          <label class="blue11">&nbsp;&nbsp;to </label>  
            <select name="age_max" id="age_max" style="width:64px;">
                <option value="18">18</option>
                <option value="19">19</option>
                <option value="20">20</option>
                <option value="21">21</option>
                <option value="22">22</option>
                <option value="23">23</option>
                <option value="24">24</option>
                <option value="25">25</option>
                <option value="26">26</option>
                <option value="27">27</option>
                <option value="28">28</option>
                <option value="29">29</option>
                <option value="30">30</option>
                <option value="31">31</option>
                <option value="32">32</option>
                <option value="33">33</option>
                <option value="34">34</option>
                <option value="35">35</option>
                <option value="36">36</option>
                <option value="37">37</option>
                <option value="38">38</option>
                <option value="39">39</option>
                <option value="40">40</option>
                <option value="41">41</option>
                <option value="42">42</option>
                <option value="43">43</option>
                <option value="44">44</option>
                <option value="45">45</option>
                <option value="46">46</option>
                <option value="47">47</option>
                <option value="48">48</option>
                <option value="49">49</option>
                <option value="50" selected="selected">50</option>
                <option value="51">51</option>
                <option value="52">52</option>
                <option value="53">53</option>
                <option value="54">54</option>
                <option value="55">55</option>
                <option value="56">56</option>
                <option value="57">57</option>
                <option value="58">58</option>
                <option value="59">59</option>
                <option value="60">60</option>
              </select>
          </div></div>
        
        <div id="searchtext">
          <div id="search_t1">Country:</div>
          <div id="search_t2"><select name="country" id="country" style="width:150px;">
          <option value="All">All</option>
					<? $str="select * from country order by country_id ASC";
		$rc = mysql_query($str) or die ("Sorry! could not execute query $str ".mysql_error());
		while($row=mysql_fetch_array($rc)){  ?>
		<option value="<?=$row['country_id']?>"><?=$row['country']?></option>
						<? } ?>
                </select>
          </div></div>
        
        <div id="searchtext"><div id="search_t1">Language:</div>
          <div id="search_t2"><select name="community" id="community" style="width:150px;">
                <option value="All">All</option>
					<? $str="select * from community order by community_id ASC";
		$rc = mysql_query($str) or die ("Sorry! could not execute query $str ".mysql_error());
		while($row=mysql_fetch_array($rc)){  ?>
		<option value="<?=$row['community_id']?>"><?=$row['community']?></option>
						<? } ?>
              </select>
          </div></div>
        
        <div id="searchtext"><div id="search_t1">Search with Photo:</div>
          <div id="search_t2">
            <input name="photo" type="checkbox" id="photo" value="y" style="border:none;" />
          </div>
        </div>
        
        <div id="searchtext" style="padding-bottom:10px;"><div id="search_t1">&nbsp;</div>
          <div id="search_t2">

              <input name="search" type="image" src="images/images/search_btn.jpg" width="70" height="25" title="Search" alt="Search" id="search" value="Search" style="height:25px; width:70px; border:none; background-color:#f8f8f8;" />

          </div></div>
        </form>
        <div id="searchtext">
			<form action="profile.php" method="post" name="profile" class="profile_search1" id="profile">
          	<div id="search_t1" style="width:130px; text-align:right; padding-top:6px;">Search by profile id:&nbsp;&nbsp;</div>
          	<div id="search_t2" style="width:190px;">
				<div id="here_only" style="float:left; width:90px; padding-top:3px;"><input type="text" name="cid" id="cid" style="width:70px;" /></div>
          	  <input type="image" src="images/images/go_btn.jpg" width="40" height="25" style="width:40px; height:25px; border:none; background-color:#f8f8f8;" name="go" id="go" onclick="return blank_check();" />
          	</div>
			</form>
        </div>
      </div>
    </div>
    <div id="buddhist_portal">
    	<div id="focus_text"><img src="images/images/home_page_text.jpg" alt="home page text" width="489" height="48" longdesc="http://www.eparinay.com" /></div>
  		<div id="register_button"><a href="register.php"><img src="images/images/homepage_register_button.jpg" alt="Register to eParinay. Its free now 1" longdesc="http://www.eparinay.com/register.php" title="Register to eParinay. Its free now 1" border="0" width="220" height="40" /></a></div>
  	</div>
 

  <div id="link_home"><span class="red-txt">&bull;&nbsp;&nbsp;</span>Search by Community: <A title="Marathi Matrimonial" 
                                href="buddhist-matrimony-community-search-result.php?community=1">Marathi</A>, <A title="Hindi Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=9">Hindi</A>, <A title="Gujarati Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=2">Gujarati</A>, <A title="Punjabi Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=3">Punjabi</A>, <A title="Sindhi Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=4">Sindhi</A>, <A title="Marwari Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=5">Marwari</A>, <A title="Tamil Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=6">Tamil</A>, <A title="Assamese Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=7">Assamese</A>, <A title="Kannada Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=8">Kannada</A>, <A title="Malayalam Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=10">Malayalam</A>, <A title="Bengali Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=11">Bengali</A>, <A title="Oriya Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=12">Oriya</A>, <A title="Telugu Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=13">Telugu</A>, <A title="Kerala Matrimonial"
                                href="buddhist-matrimony-community-search-result.php?community=14">Kerala</A> <br />
    <span class="red-txt">&bull;&nbsp;&nbsp;</span>Search by Region: <A title="India Matrimonial" 
                                href="buddhist-parinay-region-search-result.php?country=1">India</A>, <A title="USA Matrimonial"
                                href="buddhist-parinay-region-search-result.php?country=2">USA</A>, <A title="UK Matrimonial"
                                href="buddhist-parinay-region-search-result.php?country=3">UK</A>, <A title="UAE Matrimonial"
                                href="buddhist-parinay-region-search-result.php?country=4">UAE</A>, <A title="Canada Matrimonial"
                                href="buddhist-parinay-region-search-result.php?country=5">Canada</A>, <A title="Singapore Matrimonial"
                                href="buddhist-parinay-region-search-result.php?reli=6">Singapore</A>, <A title="Malaysia Matrimonial"
                                href="buddhist-parinay-region-search-result.php?country=8">Malaysia</A>, <A title="Thailand Matrimonial"
                                href="buddhist-parinay-region-search-result.php?country=14">Thailand</A>, <A title="New Zealand Matrimonial"
                                href="buddhist-parinay-region-search-result.php?country=9">New Zealand</A>, <A title="South Africa Matrimonial"
                                href="buddhist-parinay-region-search-result.php?country=10">South Africa</A>, <A title="Indonesia Matrimonial"
                                href="buddhist-parinay-region-search-result.php?country=12">Indonesia</A>, <A title="Pakistan Matrimonial"
                                href="buddhist-parinay-region-search-result.php?country=7">Pakistan</A>, <A title="Saudi Arabia Matrimonial"
                                href="buddhist-parinay-region-search-result.php?country=13">Saudi Arabia</A>, <A title="Australia Matrimonial"
                                href="buddhist-parinay-region-search-result.php?country=15">Australia</A><br />
      
</div>



  </div>
  <div id="corner_container_bottom_for_homepage"><img src="images/images/homepage_bottom_corner_820x10.jpg" width="878" height="10" /></div>

  <div id="latest_users" style=" ">
      <?php
       $sql = "SELECT customer.customer_id,customer.name,customer.online_status,customer.surname, customer.age, occupation.occupation,  nativeplace.nativeplace,  customer.image_1
FROM (customer INNER JOIN nativeplace ON customer.city = nativeplace.nativeplace_id ) INNER JOIN occupation ON customer.occupation = occupation.occupation_id
WHERE customer.status = 'Y' and image_1 !='' ORDER BY customer_id DESC limit 0,8";
        $rs = mysql_query($sql) or die(mysql_error());
        $cnt = mysql_num_rows($rs);
        if(@mysql_num_rows($rs)>0){            

          ?>
      <?  while($row=mysql_fetch_array($rs)){ ?>
             <?php $profile_permalink = profile_permalink($row['customer_id'],$row['name'],$row['surname']); ?>
       	  <div align="center" id="homephoto_search_container">
                	<div id="homephoto_search_photo">
                    <?if($row['image_1']){?><a href="<?php echo $profile_permalink; ?>"><img src="uploaded/thumb/<?=$row['image_1']?>"  border="0" /></a>
                  <?php } else { ?>
                <a href="<?php echo $profile_permalink; ?>"><img src="images/images/default_eparinay_bride.jpg" width="90" height="90" border="0" /></a>                <?}?>
                    </div>
            <div id="homephoto_search_name"><?=stripslashes(substr($row['name'],0,15)) ?>,</div>
            <div id="homephoto_search_name"><?=stripslashes(substr($row['occupation'],0,15)) ?>,</div>
            <div id="homephoto_search_name"><?=stripslashes(substr($row['nativeplace'],0,15)) ?></div>
          </div>
                <?php } ?>

      <?php } else { ?>
      <div id="no_results_message">Sorry!! No results found.</div> <?php } ?>
  </div>


    </div>
      
 <?php include("include/footer.php"); ?>